import TJavaLib.TList;
import TJavaLib.TGraphic;
import java.awt.Color;
import java.awt.Font;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
import java.text.DecimalFormat;

public class TGateway extends TNode {
	private static int gwID = 0;
	private DecimalFormat dF = new DecimalFormat("#,##0.00", new DecimalFormatSymbols(Locale.US));
	
	public static void resetID() { gwID = 0; }
	
	public TGateway() {
		super(TNode.GATEWAY);
		
		deco.shape = TDeco.TRIANGLE;
		deco.radius = 10;
		deco.fillColor = Color.blue;
		deco.textColor = TGraphic.getColor("#680000");
		deco.font = new Font("Arial", Font.BOLD, 8);
		
		radio.setTX(TRadio.DF_RTX);
		
		radio.setAddr("gw"+String.valueOf(gwID));
		gwID++;
	}
}
